#!/usr/bin/env bash

kubectl create namespace kubernetes-plugin
kubectl config set-context $(kubectl config current-context) --namespace=kubernetes-plugin
kubectl create -f jenkins-deployment.yaml
kubectl create -f jenkins-service.yml

# 显示运行的容器
kubectl get service,deployment,pod

# 访问 <cluster-IP>:暴露端口
# 密钥
kubectl logs jenkins-pod